<template>
  <div id="app">
    <ul class="one">
      <li v-for="(item, index) in list" :key="index">
        <input type="checkbox" v-bind:value="item" v-model="arr" />{{ item }}
      </li>
    </ul>
    <ul class="two">
      <li v-for="(item, index) in arr" :key="index">
        {{ item }}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      arr: [],
    };
  },
  methods: {},
};
</script>
<style>
#app {
  width: 600px;
  margin: 10px auto;
}
.one {
  width: 500px;
  height: 30px;
}
.one li {
  list-style: none;
  float: left;
  margin-left: 5px;
  margin-bottom: 20px;
}
</style>